package cn.turboinfo.dongying.api.gateway.admin.fo.cms;

import cn.turboinfo.dongying.api.entity.admin.enumeration.cms.CmsCategoryType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CmsCategoryUpdateFO {
    @NotNull(
            message = "id不能为空"
    )
    private Long id;

    @NotBlank(
            message = "名称不能为空"
    )
    private String name;

    @NotBlank(
            message = "编码不能为空"
    )
    private String code;
    private String description;

    @NotNull(
            message = "栏目类型不能为空"
    )
    private CmsCategoryType type;

    private String slugName;

    /**
     * 链接
     */
    private String linkedUrl;

    private Long parentId;

    private Integer indexShow;

    private Integer sort;
}
